{include file="public/header"}
{load href="/public/static/Content/ThemesBusiness/ListPage.css"}
<script src="/public/static/Scripts/common-binder-list-view.js"></script>
<script src="/public/static/Scripts/ScriptsEasyui/datagrid-filter.js"></script>
<script type="text/javascript">
    function jh(stu) {
        var bq1 = $("#bq1").val();
        var bq2 = $("#bq2").val();
        var bq3 = $("#bq3").val();
        if (bq1 == "") {
            $("#bq1").focus();
            return;
        }
        if (bq2 == "") {
            $("#bq2").focus();
            return;
        }
        if (bq3 == "") {
            $("#bq3").focus();
            return;
        }
        if (bq1 == bq2) {
            $("#bq2").val("");
            $("#bq2").focus();
            alert("请不要录入重复二维码");
            return;
        }
        if (bq1 == bq3) {
            $("#bq3").val("");
            $("#bq3").focus();
            alert("请不要录入重复二维码");
            return;
        }
        if (bq2 == bq3) {
            $("#bq3").val("");
            $("#bq3").focus();
            alert("请不要录入重复二维码");
            return;
        }
        var ts = "激活";
        if (stu == 2) {
            ts = "作废";
        }
        if (confirm("确定要" + ts + "防伪码吗？") == true) {
            $.ajax({
                type: "post",
                data: { "bq1": bq1, "bq2": bq2, "bq3": bq3, "status": stu },
                dataType: "json",
                url: "/admin/goodstags/jh",
                success: function (res) {
                    alert(ts + res.msg);
                }
            });
        }
    }
</script>

<div style="width:80%; margin:40px auto; text-align:center;">
    说明：52315云大数据防伪平台系统将以全面提升防伪技术和大数据技术为核心竞争力
    <table style="margin:0 auto;">
        <tbody>
            <tr>
                <td>标签一</td>
                <td><input style="width:300px; height:30px; line-height:30px;" type="text" id="bq1"></td>
            </tr>
            <tr>
                <td>标签二</td>
                <td><input style="width:300px; height:30px; line-height:30px;" type="text" id="bq2"></td>
            </tr>
            <tr>
                <td>标签三</td>
                <td><input style="width:300px; height:30px; line-height:30px;" type="text" id="bq3"></td>
            </tr>
        </tbody>
    </table>
    <div style="width:100%; text-align:center; margin-top:10px;"> <button onclick="jh(1)">激活</button><button
            style="margin-left:30px;" onclick="jh(2)">作废</button></div>
</div>
{include file="public/footer"/}